import {Component} from '@angular/core';
import {IonicModule} from '@ionic/angular';
import {Router} from '@angular/router';

@Component({
  selector: 'app-home',
  templateUrl: 'home.page.html',
  styleUrls: ['home.page.scss'],
  standalone: true,
  imports: [IonicModule],
})
export class HomePage {
  constructor(private router: Router) {
  }

  handlerToScanCode(type: number) {
    console.log(">>>>>>>>>>>>>type", type)
    if (type == 1) {
      this.router.navigate(['/scan-code'])
    }
    if (type == 2) {
      this.router.navigate(['/send-mail'])
    }
    if (type == 3) {
      this.router.navigate(['/play-audio'])
    }
    if (type == 4) {
      this.router.navigate(['/device-orientation'])
    }
    if (type == 5) {
      this.router.navigate(['/ocr'])
    }
    if (type == 6) {
      this.router.navigate(['/tts'])
    }
  }
}
